﻿using Aspire.Domain.Core;
using FreeSql.DataAnnotations;
using System;

namespace Aspire.Repository.FreeSql
{
    public class BaseFreeSqlEntity : BaseEntity<long>
    {
        [Column(IsIdentity = true, IsPrimary = true)]
        public override long Id { get; set; }

        public override DateTime CreatedAt { get; set; } = DateTime.Now;

        public override DateTime UpdatedAt { get; set; } = DateTime.MaxValue;

        public override bool IsDelete { get; set; } = false;

        public override DateTime DeleteAt { get; set; } = DateTime.MaxValue;
    }
}
